package com.yun.studyconsumer.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class FanoutReceiver {

    @RabbitListener(queues = "fanout.A")
    public void processA(Map<String,Object> msg){
        System.out.println("fanoutA 收到信息："+msg.toString());
    }
    @RabbitListener(queues = "fanout.B")
    public void processB(Map<String,Object> msg){
        System.out.println("fanoutB 收到信息："+msg.toString());
    }
    @RabbitListener(queues = "fanout.C")
    public void processC(Map<String,Object> msg){
        System.out.println("fanoutC 收到信息："+msg.toString());
    }
}
